# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=zathura-pdf-mupdf
pkgver=0.4.1
pkgrel=6
pkgdesc="mupdf plugin to zathura"
url="https://git.pwmt.org/pwmt/zathura-pdf-mupdf"
arch="all"
license="Zlib"
options="!check" # no test suite
depends="zathura !zathura-pdf-poppler"
makedepends="
	meson
	mupdf-dev
	ninja
	zathura-dev
	"
source="https://pwmt.org/projects/zathura-pdf-mupdf/download/zathura-pdf-mupdf-$pkgver.tar.xz
	fix-meson.build.patch
	"

build() {
	abuild-meson build
	meson compile -C build
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C build
}

sha512sums="
26bb28fa15fbbd8dc39b72a01812f424ec02e02af1dcb79b1ae10865c209cc00b8d2f813aa0685e1bef76f6c8ce5f8a461cf51c3a37691face9f84416e0ab31a  zathura-pdf-mupdf-0.4.1.tar.xz
dbe18e2f56db80184edcd174221342770b6baa46ec14ed2f75e9033d961ac993fdbd9ba7faeb139787d5e463de5e612a2f6d0d1dc47075f3d52b51996fa5e561  fix-meson.build.patch
"
